package com.crm.crm.service;


import com.crm.entity.Partner;
import com.crm.model.Telephone;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface CrmPartnerService {
    //List<Partner> findAll();
    PageInfo<Partner> findAll(int pageIndex, int PageSize);

    String depId(String userId);

    PageInfo<Partner> findByPartType(Integer partnerType, String createId, int pageIndex, int PageSize);

    //插入partner所有信息
    int add(Partner partner);

    //更新数据
    int update(Partner partner);

    //根据id删除数据
    int remove(String id);

    //根据id获取数据
    Partner get(String partnerId);

    PageInfo<Partner> findByCreatUser(String createUserId, String partnerType, int pageIndex, int PageSize);

    PageInfo<Partner> findByCity(Integer partnerType, String[] cities, int pageIndex, int PageSize);

    int findByOnly(String create_user_id, String telephone, Integer partner_type);

    PageInfo<Partner> findAssetInf(String createId, String userId, String company, Integer partnerType, String belong, String[] cities, String orgType, String orgRemark, String typeId, int pageIndex, int PageSize);

    PageInfo<Partner> findAssetInf1(String depId, String createId, String company, Integer partnerType, String belong, String[] cities, String orgType, String orgRemark, String typeId, int pageIndex, int PageSize);


    PageInfo<Partner> findFundInfo(String createId, String userId, String company, Integer partnerType, String orgType, String orgRemark, String currency, String incomeType, String struct, Integer scaleMin, Integer scaleMax, String deadline, String[] cities, String typeId, String typeName, Integer incomeRate, int pageIndex, int PageSize);

    PageInfo<Partner> findFundInfo1(String depId, String createId, String company, Integer partnerType, String orgType, String orgRemark, String currency, String incomeType, String struct, Integer scaleMin, Integer scaleMax, String deadline, String[] cities, String typeId, String typeName, Integer incomeRate, int pageIndex, int PageSize);

    List<String> path(String roleId);

    int reduction(String partnerId);

    int findWeixin(String create_user_id, String weixin, Integer partner_type);

    int findEmail(String create_user_id, String email, Integer partner_type, String name);

    List<String> partnerId(String partnerId);

    int updateAll(String name, String sex, String telephone, String weixin,
                  String email, List<Telephone> telephoneList, List<String> part);

}
